from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import View


class MyLoginRequest(LoginRequiredMixin, View):
    login_url = '/login'  # 未登录重定向的路径
    redirect_field_name = 'next'  # 跳转的引用
